package com.lebang.service.cences;

import com.lebang.domain.CencesNewusersCityscale;
import com.lebang.example.CencesNewusersCityscaleExample;
import com.lebang.mapper.CencesNewusersCityscaleMapper;
import com.lebang.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @Author ljx
* @Date 2020-11-26
*/
@Service
public class CencesNewusersCityscaleService extends BaseService<CencesNewusersCityscale,Integer, CencesNewusersCityscaleExample> {
    @Autowired
    private CencesNewusersCityscaleMapper mapper;

    /**
     * 删除城市用户统计
     * @param time
     * @return
     */
    public int deleteRecord(Integer time) {
        CencesNewusersCityscaleExample example=new CencesNewusersCityscaleExample();
        example.createCriteria().andTimeEqualTo(time);
        return mapper.deleteByExample(example);
    }
}
